/* ============================================================
 * Part of 'Autostop' project
 * Under GPL license - http://www.gnu.org/licenses/gpl.html
 * (c) 2006 - Autostop team
 */

#include <stdio.h>
#include <stdarg.h>

#include "diagnostic.h"

// =====================================================
/// Reports application error. Uses printf formatting
///\par	format	- printf-style format string. Subsequent params are used
void error( const char* format, ... )
{
	va_list ap;
	va_start( ap, format );

	vfprintf( stderr, format, ap );
	
	va_end( ap );
}

// =====================================================
/// Reports application warning. Uses printf formatting
///\par	format	- printf-style format string. Subsequent params are used
void warning( const char* format, ... )
{
	va_list ap;
	va_start( ap, format );

	vfprintf( stderr, format, ap );
	
	va_end( ap );
}

// =====================================================
/// Reports diagnostic message. Uses printf formatting
///\par	format	- printf-style format string. Subsequent params are used
void message( const char* format, ... )
{
	va_list ap;
	va_start( ap, format );

	vfprintf( stderr, format, ap );
	
	va_end( ap );
}

// eof

